This example requires Java 5 (JDK 1.5) or later and Eclipse 3.2 or later. This page gives you a link to all of the downloads you'll need to get to get started. While I might mention specific version numbers, it's a good bet that newer versions should work as well... of course that's not always the case.
Note: We need the jar file that contains javax.persistence and the various annotations associated with JPA. You can either download JEE or get it from somewhere else. For this series of tutorials, we eventually use the JBoss EJB3 Embeddable container, so we'll use that to avoid an extra 150+ meg download for one jar file.
Download Everything
First the basic stuff:
Download JSE 5 (choose just JDK 5.0 (there will be an update after it))
Note: We need the jar file that contains javax.persistence and the various annotations associated with JPA. You can either download JEE or get it from somewhere else. For this series of tutorials, we eventually use the JBoss EJB3 Embeddable container, so we'll use that to avoid an extra 150+ meg download for one jar file.
Download Everything
First the basic stuff:Next, the libraries:
Setup the JDK & Eclipse
Extract Jar Files
Extract each of the libraries to some location. In my case I extracted everything to C:/libs, so I have the following directories